package date;

import java.util.Calendar;

public class CalendarShow {
    public static void main(String[] args) {
        // calendar无格式化方法
        Calendar c = Calendar.getInstance();
        System.out.println(c);
        System.out.println(c.get(Calendar.YEAR));
        System.out.println(c.get(Calendar.DAY_OF_MONTH));

    }
}
